from PIL import ImageFont, ImageDraw, Image
import numpy as np
def chinese(frame,size,box,text,cloor=(0, 255, 255)):
    font_path = 'path_to_font/simsun.ttc'  # 使用SimSun字体
    font_size = size
    font = ImageFont.truetype(font_path, font_size)
    img_pil = Image.fromarray(frame)
    Draw = ImageDraw.Draw(img_pil)
    Draw.text((int(box[0]), int(box[1])), text, font=font, fill=cloor)
    tframe = np.array(img_pil)
    return tframe